<template>
  <div id="app">
    <img src="./assets/logo.png">

     <div>
         <router-link to="/" >首页</router-link>|
         <router-link to="/jspang">第二页</router-link>|
         <router-link to="/ch">配置路由中的钩子函数</router-link>|
         <router-link :to="{name:'x1',params:{us:'xiao',xx:'zhazha'}}" >xin-x1</router-link>|
         <router-link :to="{name:'x2',params:{pa:'sun'}}">xin-x2</router-link>|
         <router-link :to="{name:'dan',params:{dan:'route'}}">dan</router-link>
     </div>
     <transition name='fade' mode='out-in'>
       <router-view></router-view>
     </transition>
     <!-- <router-view name="left" class="fd" ></router-view>
     <router-view name="right"  class="fy"></router-view> -->

  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
    .fd{float: left ; width: 50%; height: 300px; background-color: salmon;}
    .fy{float: left ; width: 50%; height: 300px; background-color: darkcyan;}

.fade-enter {
  opacity:0;
}
.fade-leave{
  opacity:1;
}
.fade-enter-active{
  transition:opacity .5s;
}
.fade-leave-active{
  opacity:0;
  transition:opacity .5s;
}
</style>
